home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / bash-1.12 / dist / trap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-01  |  361 b   |  21 lines

  1. /* trap.h -- data structures used in the trap mechanism. */
  2.  
  3. #ifndef NSIG
  4. #include <signal.h>
  5. #endif
  6.  
  7. #ifndef NSIG
  8. #define NSIG 64
  9. #endif
  10.  
  11. #define NO_SIG -1
  12. #define DEFAULT_SIG SIG_DFL
  13. #define IGNORE_SIG  SIG_IGN
  14.  
  15. #define signal_object_p(x) (decode_signal (x) != NO_SIG)
  16.  
  17. extern char *trap_list[NSIG];
  18. extern char *signal_name ();
  19. extern int signal_decode ();
  20.  
  21.